how to do sum of all data